(window.webpackJsonpvtex_store_header_2_29_0=window.webpackJsonpvtex_store_header_2_29_0||[]).push([["index"],[function(e,t){e.exports=React},,function(e,t){e.exports=PropTypes},,function(e,t){e.exports=__RENDER_8_RUNTIME__},,,,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/Container"]},,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},,,,,,,,,,,,function(e,t,o){"use strict";o.r(t),function(e){var t=o(1);o.p=Object(t.getPublicPath)("vtex.store-header@2.29.0");var n=Object(t.register)((function(){return o(26)}),e,"vtex.store-header@2.29.0","vtex.store-header@2.x","index");n.renderHotReload,n.setupHMR}.call(this,o(8)(e))},function(e,t,o){"use strict";o.r(t);var n,a=o(0),r=o.n(a),l=o(4),c=o(13),i=o.n(c);!function(e){e.mobile="mobile",e.desktop="desktop"}(n||(n={}));var s=r.a.memo((function(e){switch(e.device){case n.mobile:return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.Block,{id:"header-layout.mobile"}),r.a.createElement(l.Block,{id:"unstable--header-layout.mobile"}));case n.desktop:default:return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.Block,{id:"header-layout.desktop"}),r.a.createElement(l.Block,{id:"unstable--header-layout.desktop"}))}}));s.displayName="CustomHeaderLayout";var u=function(){var e=i()().isMobile;return r.a.createElement(s,{device:e?n.mobile:n.desktop})},d=r.a.lazy((function(){return Promise.all([o.e(1),o.e(2)]).then(o.bind(null,42))}));function _(e){var t=!!Object(l.useChildBlock)({id:"header-layout.desktop"}),o=!!Object(l.useChildBlock)({id:"unstable--header-layout.desktop"}),n=!!Object(l.useChildBlock)({id:"header-layout.mobile"}),c=!!Object(l.useChildBlock)({id:"unstable--header-layout.mobile"});return t||n||o||c?r.a.createElement(u,e):r.a.createElement(l.NoSSR,null,r.a.createElement(a.Suspense,{fallback:r.a.createElement("div",null)},r.a.createElement(d,e)))}_.schema=d.schema;t.default=_},function(e,t){e.exports=Classnames},function(e,t){e.exports=ReactIntl},,,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ButtonWithIcon"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconSearch"]}],[[25,"common"]]]);; (window.webpackJsonpvtex_store_header_2_29_0=window.webpackJsonpvtex_store_header_2_29_0||[]).push([["Layout"],{0:function(e,t){e.exports=React},17:function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("vtex.store-header@2.29.0");var r=Object(t.register)((function(){return n(18)}),e,"vtex.store-header@2.29.0","vtex.store-header@2.x","Layout");r.renderHotReload,r.setupHMR}.call(this,n(8)(e))},18:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),u=n(5);t.default=function(e){var t=e.children;return a.a.createElement(u.b,null,t)}},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r,a=n(0),u=n.n(a),c=n(7),i=n(6);!function(e){e.UPDATE="update"}(r||(r={}));var o=function(e,t){switch(t.type){case"update":return Object.assign(Object.assign({},e),Object(i.a)({},t.payload.index,t.payload.height));default:return e}},s=function(){var e=u.a.useReducer(o,{}),t=Object(c.a)(e,2),n=t[0],a=t[1];return{getAccumulatedHeight:function(e){var t=Object.keys(n).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t}));return t.slice(0,t.indexOf(e)).reduce((function(e,t){return(n[t]||0)+e}),0)},updateRowHeight:function(e){var t=e.height,u=e.index;n[u]!==t&&a({payload:{height:t,index:u},type:r.UPDATE})}}},d=u.a.createContext({onResize:function(){},offset:0});t.b=function(e){var t=e.children,n=s(),r=n.updateRowHeight,a=n.getAccumulatedHeight;return u.a.createElement(u.a.Fragment,null,u.a.Children.map(t,(function(e,t){return u.a.createElement(d.Provider,{value:{onResize:function(e){return r({height:e,index:t})},offset:a(t)}},e)})))}}},[[17,"common"]]]);; !function(e){function t(t){for(var r,u,c=t[0],a=t[1],l=t[2],s=0,p=[];se.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=e.hideEmptyCols,o=void 0!==n&&n,r=t.reduce((function(t,e){var n="grow"===e.width,o="number"==typeof e.width?t.availableWidth-e.width:0;return{availableWidth:n?0:o,remainingColsNum:t.remainingColsNum+(e.hasDefinedWidth?0:1),hasAnyWidthGrow:t.hasAnyWidthGrow||n}}),{availableWidth:100,remainingColsNum:0,hasAnyWidthGrow:!1}),i=r.availableWidth,a=r.remainingColsNum,c=r.hasAnyWidthGrow;if(i<0&&!c){var d=-100/i;t=t.map((function(t){return Object.assign(Object.assign({},t),{width:"number"==typeof t.width?t.width*d:t.width})}))}return t.map((function(t){var e="number"==typeof t.width?"".concat(t.width,"%"):t.width;return{element:t.element,width:t.hasDefinedWidth?e:"".concat(Math.floor(Math.max(0,i)/(o?1:a)),"%"),hasDefinedWidth:t.hasDefinedWidth}}))};var m,w,v,g=n(14),O=n.n(g);!function(t){t.equal="equal",t.auto="auto"}(w||(w={})),function(t){t.between="between",t.around="around",t.left="left",t.right="right",t.center="center"}(v||(v={}));var j=(m={},Object(r.a)(m,v.between,"justify-between"),Object(r.a)(m,v.around,"justify-around"),Object(r.a)(m,v.left,"justify-start"),Object(r.a)(m,v.center,"justify-center"),Object(r.a)(m,v.right,"justify-end"),m),y=["flexRowContent"],W=function(t){var e=t.children,n=t.colGap,r=t.rowGap,i=t.marginTop,c=t.marginBottom,d=t.paddingTop,p=t.paddingBottom,m=t.border,g=t.borderWidth,W=t.borderColor,x=t.preserveLayoutOnMobile,C=t.preventHorizontalStretch,G=t.preventVerticalStretch,k=t.horizontalAlign,R=t.colSizing,E=t.colJustify,D=void 0===E?v.between:E,N=t.experimentalHideEmptyCols,_=void 0!==N&&N,M=Object(u.c)(),A=l()(y),B=Object(f.d)({colGap:null!=n?n:M.colGap,rowGap:null!=r?r:M.rowGap}),L=Object(f.b)({marginTop:i,marginBottom:c}),P=Object(f.c)({paddingTop:d,paddingBottom:p}),T=Object(f.a)({border:m,borderWidth:g,borderColor:W}),S=function(t,e){var n="phone"===h()().device,o=e||{},r=o.preserveLayoutOnMobile,i=void 0!==r&&r,c=o.hideEmptyCols,d=void 0!==c&&c,l=a.a.Children.toArray(t).map((function(t){if(!(e=t)||!e.props)return{element:t,width:0,hasDefinedWidth:!1,isResponsive:!0};var e,o=Object(f.e)(t.props.width||t.props.blockProps&&t.props.blockProps.width);return o&&"object"===Object(s.a)(o)?{element:t,width:n?o.mobile||0:o.desktop||0,hasDefinedWidth:!0,isResponsive:!0}:!i&&n?{element:t,width:0,hasDefinedWidth:!1,isResponsive:!1}:"number"==typeof o||"string"==typeof o?{element:t,width:o,hasDefinedWidth:!0,isResponsive:!1}:{element:t,width:0,hasDefinedWidth:!1,isResponsive:!0}})),u=l.some((function(t){return t.isResponsive})),p=!i&&n&&!u;return{cols:b(l,{hideEmptyCols:d}),breakOnMobile:p}}(e,{preserveLayoutOnMobile:x,hideEmptyCols:_}),I=S.cols,z=S.breakOnMobile,J=R===w.auto,q=J?j[D]:j.left;return null!=k&&(q=j[k]),a.a.createElement(u.a,Object(o.a)({parent:u.b.ROW},B),a.a.createElement("div",{className:"".concat(z?"flex-none flex-ns":"flex"," ").concat(L," ").concat(P," ").concat(T," ").concat(q," ").concat(A.flexRowContent," items-stretch w-100")},I.map((function(t,e){var n=e===I.length-1,o=n?0:B.colGap,r=n?0:B.rowGap;return a.a.createElement("div",{key:e,className:"".concat(z?"pr".concat(o,"-ns pb").concat(r," pb0-ns"):"pr".concat(o)," ").concat(G?"":"items-stretch"," ").concat(C?"":O.a.stretchChildrenWidth," ").concat("grow"===t.width?"flex-grow-1":""," ").concat(_?O.a.col:""," flex"),style:{width:C||J&&!t.hasDefinedWidth?"auto":z?"100%":t.width}},t.element)}))))},x=Object(c.defineMessages)({title:{id:"admin/editor.row.title"},description:{id:"admin/editor.row.description"}});W.schema={title:x.title.id,description:x.description.id};e.default=W},14:function(t,e,n){t.exports={stretchChildrenWidth:"vtex-flex-layout-0-x-stretchChildrenWidth",col:"vtex-flex-layout-0-x-col"}},2:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return d}));var o,r=n(0),i=n.n(r);!function(t){t.NONE="none",t.ROW="row",t.COL="col"}(o||(o={}));var a=i.a.createContext({parent:o.NONE,colGap:0,rowGap:0}),c=function(t){var e=t.parent,n=t.colGap,o=t.rowGap,c=t.children,d=Object(r.useMemo)((function(){return{parent:e,colGap:n,rowGap:o}}),[e,n,o]);return i.a.createElement(a.Provider,{value:d},c)},d=function(){return Object(r.useContext)(a)}},3:function(t,e,n){"use strict";n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f}));var o,r=n(7),i=n(1),a=function(t,e){return t?Object(i.range)(0,12).map(String).includes(String(t))?"string"==typeof t?parseInt(t,10):t:(e&&console.warn("Invalid ".concat(e,' value ("').concat(t,'"). It should be an integer between 0 and ').concat(11,".")),0):0},c=function(t){var e=Object(i.toPairs)(t).map((function(t){var e=Object(r.a)(t,2),n=e[0],o=e[1];return[n,a(o,n)]}));return Object(i.fromPairs)(e)},d=function(t){if("string"!=typeof t)return null;if("grow"===t)return"grow";var e=t.match(new RegExp("(\\d*)(".concat(["%"].join("|"),")")));if(!e)return null;var n=e[1];return null==n?null:parseInt(n,10)},l=(o=d,function(t){return function(t){return t&&null!=t.mobile&&null!=t.desktop}(t)?{mobile:o(t.mobile),desktop:o(t.desktop)}:o(t)}),u=function(t){return function(e){var n=Object(i.pick)(Object.keys(t),e),o=c(n);return Object(i.toPairs)(o).map((function(e){var n=Object(r.a)(e,2),o=n[0],i=n[1];return"".concat(t[o]).concat(i)})).join(" ")}},s=u({paddingTop:"pt",paddingBottom:"pb",paddingLeft:"pl",paddingRight:"pr"}),p=u({marginTop:"mt",marginBottom:"mb",marginLeft:"ml",marginRight:"mr"}),h={top:"bt",right:"br",bottom:"bb",left:"bl",all:"ba"},f=function(t){var e=t.border,n=t.borderWidth,o=t.borderColor,r=e?[].concat(e).map((function(t){return h[t]})).join(" "):"",i=n?"bw".concat(a(n,"bw")):"",c=o?"b--".concat(o.split(" ")[0]):"";return"".concat(r," ").concat(i," ").concat(c)}}}]);; (window.webpackJsonpvtex_flex_layout_0_21_4=window.webpackJsonpvtex_flex_layout_0_21_4||[]).push([["FlexLayout"],[function(e,t){e.exports=React},function(e,t){e.exports=R},,,,function(e,t){e.exports=ReactIntl},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValues"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/Container"]},,,,function(e,t,o){"use strict";o.r(t),function(e){var t=o(4);o.p=Object(t.getPublicPath)("vtex.flex-layout@0.21.4");var a=Object(t.register)((function(){return o(20)}),e,"vtex.flex-layout@0.21.4","vtex.flex-layout@0.x","FlexLayout");a.renderHotReload,a.setupHMR}.call(this,o(10)(e))},function(e,t,o){"use strict";o.r(t);var a=o(0),n=o.n(a),l=o(5),i=o(6),s=o.n(i),r=o(15),c=o.n(r),u=o(9),x=o.n(u),_=o(2),d=o(13),f=["flexRow"],p=function(e){var t=x()(e),o=t.fullWidth,a=t.htmlId,i=Object(_.c)(),r=s()(f),u=Object(l.useIntl)(),p=n.a.createElement(d.default,t),v=i.parent===_.b.NONE;return o||!v?n.a.createElement("div",{className:r.flexRow,id:a,"aria-label":u.formatMessage({id:"store/flex-layout.flexLayout-row.aria-label"},{sectionId:null!=a?a:"row"})},p):n.a.createElement("div",{className:r.flexRow,id:a,"aria-label":u.formatMessage({id:"store/flex-layout.flexLayout-row.aria-label"},{sectionId:null!=a?a:"row"})},n.a.createElement(c.a,null,p))},v=Object(l.defineMessages)({title:{id:"admin/editor.row.title"},description:{id:"admin/editor.row.description"}});p.schema={title:v.title.id,description:v.description.id},t.default=p}],[[19,"common",0]]]);; (window.webpackJsonpvtex_flex_layout_0_21_4=window.webpackJsonpvtex_flex_layout_0_21_4||[]).push([["Col"],[function(t,n){t.exports=React},function(t,n){t.exports=R},function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"a",(function(){return a})),e.d(n,"c",(function(){return u}));var r,o=e(0),c=e.n(o);!function(t){t.NONE="none",t.ROW="row",t.COL="col"}(r||(r={}));var i=c.a.createContext({parent:r.NONE,colGap:0,rowGap:0}),a=function(t){var n=t.parent,e=t.colGap,r=t.rowGap,a=t.children,u=Object(o.useMemo)((function(){return{parent:n,colGap:e,rowGap:r}}),[n,e,r]);return c.a.createElement(i.Provider,{value:u},a)},u=function(){return Object(o.useContext)(i)}},function(t,n,e){"use strict";e.d(n,"d",(function(){return a})),e.d(n,"e",(function(){return l})),e.d(n,"c",(function(){return f})),e.d(n,"b",(function(){return p})),e.d(n,"a",(function(){return b}));var r,o=e(7),c=e(1),i=function(t,n){return t?Object(c.range)(0,12).map(String).includes(String(t))?"string"==typeof t?parseInt(t,10):t:(n&&console.warn("Invalid ".concat(n,' value ("').concat(t,'"). It should be an integer between 0 and ').concat(11,".")),0):0},a=function(t){var n=Object(c.toPairs)(t).map((function(t){var n=Object(o.a)(t,2),e=n[0],r=n[1];return[e,i(r,e)]}));return Object(c.fromPairs)(n)},u=function(t){if("string"!=typeof t)return null;if("grow"===t)return"grow";var n=t.match(new RegExp("(\\d*)(".concat(["%"].join("|"),")")));if(!n)return null;var e=n[1];return null==e?null:parseInt(e,10)},l=(r=u,function(t){return function(t){return t&&null!=t.mobile&&null!=t.desktop}(t)?{mobile:r(t.mobile),desktop:r(t.desktop)}:r(t)}),d=function(t){return function(n){var e=Object(c.pick)(Object.keys(t),n),r=a(e);return Object(c.toPairs)(r).map((function(n){var e=Object(o.a)(n,2),r=e[0],c=e[1];return"".concat(t[r]).concat(c)})).join(" ")}},f=d({paddingTop:"pt",paddingBottom:"pb",paddingLeft:"pl",paddingRight:"pr"}),p=d({marginTop:"mt",marginBottom:"mb",marginLeft:"ml",marginRight:"mr"}),s={top:"bt",right:"br",bottom:"bb",left:"bl",all:"ba"},b=function(t){var n=t.border,e=t.borderWidth,r=t.borderColor,o=n?[].concat(n).map((function(t){return s[t]})).join(" "):"",c=e?"bw".concat(i(e,"bw")):"",a=r?"b--".concat(r.split(" ")[0]):"";return"".concat(o," ").concat(c," ").concat(a)}},,function(t,n){t.exports=ReactIntl},function(t,n){t.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},,,function(t,n){t.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValues"]},,,,,,,,function(t,n,e){"use strict";e.r(n),function(t){var n=e(4);e.p=Object(n.getPublicPath)("vtex.flex-layout@0.21.4");var r=Object(n.register)((function(){return e(18)}),t,"vtex.flex-layout@0.21.4","vtex.flex-layout@0.x","Col");r.renderHotReload,r.setupHMR}.call(this,e(10)(t))},function(t,n,e){"use strict";e.r(n);var r,o,c=e(11),i=e(0),a=e.n(i),u=e(5),l=e(9),d=e.n(l),f=e(6),p=e.n(f),s=e(2),b=e(3),m=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);ot.length)&&(n=t.length);for(var e=0,r=new Array(n);e0?{cleanUrl:c[0],vParam:a}:{cleanUrl:e}}(e),i=r.vParam,c=r.cleanUrl;return i?"".concat(c,"-").concat(n,"-").concat(t,"?v=").concat(i):"".concat(c,"-").concat(n,"-").concat(t)}function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(e){"number"==typeof n&&(n=Math.min(n,3e3)),"number"==typeof t&&(t=Math.min(t,4e3));var r=o(e,n,t),i=r.includes("?")?"&":"?";return"".concat(r).concat(i,"width=").concat(n,"&height=").concat(t,"&aspect=true")}}function s(e){return e.commertialOffer.Price}function f(e){var n=e.commertialOffer.AvailableQuantity;return null!=n&&n>0}function d(e,n){var t=e.filter(v);if(0===t.length)return e[0];if(1===t.length)return t[0];var r=t.map((function(e){return function(e,n){var t=e.sellers;if(1===t.length)return t[0].commertialOffer.Price;var r=t.filter(f).map(s);return"highest"===n?r.reduce((function(e,n){return n>e?n:e})):r.reduce((function(e,n){return nr[e]?t:e}),0):r.reduce((function(e,n,t){return n1&&void 0!==arguments[1]?arguments[1]:"FIRST_AVAILABLE",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;if(!e)return null;var l,s=Object.assign({},e),f=s.items||[],d=s.properties||[],m=null!==(n=d.find((function(e){return"DefaultSKUSelected"===e.name})))&&void 0!==n?n:null;if(l=1===f.length?f[0]:m?p(f,m.values,a):h(f,a)){var v=null!==(t=Object(c.a)(null==l?void 0:l.sellers))&&void 0!==t?t:P,_=null!==(i=null==l?void 0:l.referenceId)&&void 0!==i?i:[],E=Object(r.a)(_,1),S=E[0],y=void 0===S?O:S,A=null!==(u=null==l?void 0:l.images)&&void 0!==u?u:[],I=A.map((function(e){return Object.assign(Object.assign({},e),{imageUrl:b(e.imageUrl,o)})})),j=Object(r.a)(I,1),L=j[0],w=void 0===L?g:L;s.sku=Object.assign(Object.assign({},l),{seller:v,referenceId:y,image:w,images:I})}return s}},49:function(e,n,t){"use strict";t.r(n),t.d(n,"PRODUCT_LIST_PLACEMENT",(function(){return g}));var r=t(0),i=t.n(r),c=t(50),u=t.n(c),a=t(51),o=t.n(a),l=t(22),s=t.n(l),f=t(8),d=t(52),m=t.n(d);var v=function(){return m()(),null},p=t(21),h=s.a.ProductListProvider,g="home_shelf";function O(e){var n=e.children,t=e.products,c=e.ProductSummary,a=e.listName,l=e.actionOnProductClick,s=e.preferredSKU,d=o()().list,m=Object(f.useTreePath)().treePath,v=Object(r.useMemo)((function(){var e=null==t?void 0:t.map((function(e,n){var t=Object(p.b)(e,s),r=d.length+n+1,u=function(){"function"==typeof l&&l(t,{position:r})};return"function"==typeof c?i.a.createElement(c,{key:t.cacheId,product:t,listName:a,actionOnClick:u,position:r,placement:g}):i.a.createElement(f.ExtensionPoint,{id:"product-summary",key:e.cacheId,treePath:m,product:t,listName:a,actionOnClick:u,position:r,placement:g})}));return d.concat(null!=e?e:[])}),[t,d,s,c,m,a,l]);return i.a.createElement(u.a,{list:v},n)}n.default=function(e){var n=e.children,t=e.products,r=e.listName,c=e.ProductSummary,u=e.actionOnProductClick,a=e.preferredSKU;return i.a.createElement(h,{listName:null!=r?r:""},i.a.createElement(O,{preferredSKU:a,products:t,listName:r,ProductSummary:c,actionOnProductClick:u},n),i.a.createElement(v,null))}}}]);; (window.webpackJsonpvtex_product_summary_2_90_4=window.webpackJsonpvtex_product_summary_2_90_4||[]).push([["ProductSummaryList"],{0:function(t,e){t.exports=React},109:function(t,e,r){"use strict";r.r(e);var i=r(31),o=r.n(i),n=r(36),a=r(11),s=r(0),u=r.n(s),d=r(29),c=r(70),m=r.n(c),p=r(71),l=r.n(p),y=r(72),S=r.n(y),_=r(2),v=r(8),E=r(49),L=function(){var t=Object(v.useRuntime)().rootPath;return{getShippingOptionFromSession:Object(s.useCallback)(Object(n.a)(o.a.mark((function e(){var r,i,n,a,s,u,d,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(s=new Headers).append("Content-Type","application/json"),u={method:"GET",headers:s,redirect:"follow"},e.next=5,fetch("".concat(null!=t?t:"","/api/sessions?items=public.shippingOption"),u);case 5:return d=e.sent,e.next=8,d.json();case 8:if(c=e.sent,null===(n=null===(i=null===(r=null==c?void 0:c.namespaces)||void 0===r?void 0:r.public)||void 0===i?void 0:i.shippingOption)||void 0===n?void 0:n.value){e.next=11;break}return e.abrupt("return",null);case 11:return e.abrupt("return",null===(a=JSON.parse(c.namespaces.public.shippingOption.value))||void 0===a?void 0:a.map((function(t){return t.value})));case 12:case"end":return e.stop()}}),e)}))),[t])}},f={RELEVANCE:{name:"admin/editor.productSummaryList.orderType.relevance",value:""},TOP_SALE_DESC:{name:"admin/editor.productSummaryList.orderType.sales",value:"OrderByTopSaleDESC"},PRICE_DESC:{name:"admin/editor.productSummaryList.orderType.priceDesc",value:"OrderByPriceDESC"},PRICE_ASC:{name:"admin/editor.productSummaryList.orderType.priceAsc",value:"OrderByPriceASC"},NAME_ASC:{name:"admin/editor.productSummaryList.orderType.nameAsc",value:"OrderByNameASC"},NAME_DESC:{name:"admin/editor.productSummaryList.orderType.nameDesc",value:"OrderByNameDESC"},RELEASE_DATE_DESC:{name:"admin/editor.productSummaryList.orderType.releaseDate",value:"OrderByReleaseDateDESC"},BEST_DISCOUNT_DESC:{name:"admin/editor.productSummaryList.orderType.discount",value:"OrderByBestDiscountDESC"}};function x(t){if(!v.canUseDOM)return null;for(var e="".concat(t,"="),r=decodeURIComponent(document.cookie).split(";"),i=0;i0?o.sku.seller=null!==(n=o.sku.sellers.find((function(e){return e.sellerDefault})))&&void 0!==n?n:o.sku.sellers[0]:o.sku.seller={commertialOffer:{Price:0,ListPrice:0}},o.sku.image=t.sku.image,r(o)}}})},S=n(40),R=n.n(S),T=n(62),j=n.n(T),k=g.a.useProductSummaryDispatch;var L=function(){var e,t=(null!==(e=R()())&&void 0!==e?e:{}).selectedItem,n=k(),r=j()();return function(e){var i=t&&e.items.find((function(e){return e.itemId===t.itemId}));n({type:"SET_PRODUCT",args:{product:e}}),null==r||r({type:"SET_PRODUCT",args:{product:e}}),null==r||r({type:"SET_SELECTED_ITEM",args:{item:i}})}};var D=function(e){var t=e.product,n=e.inView,r=e.children,i=e.priceBehavior,a=g.a.useProductSummaryDispatch(),o=L();return C({product:t,inView:n,priceBehavior:i,onError:function(){a({type:"SET_PRICE_LOADING",args:{isPriceLoading:!1}})},onComplete:function(e){o(e),a({type:"SET_PRICE_LOADING",args:{isPriceLoading:!1}})}}),c.a.createElement(c.a.Fragment,null,r)},w=n(32),A=n.n(w),M=["sponsoredBadgeContainer","sponsoredBadgeText"],B=function(e){var t=e.label,n=void 0===t?"store/sponsoredBadge.title":t,r=s()(M).handles,i=a()(r.sponsoredBadgeContainer,"absolute z-1"),o=a()(r.sponsoredBadgeText,"c-muted-1 t-mini-s");return c.a.createElement("div",{className:i},c.a.createElement("span",{className:o},c.a.createElement(A.a,{id:n})))},V=function(e){var t,n=e.product,r=e.position,i=e.placement;if(!(null===(t=n.advertisement)||void 0===t?void 0:t.adId))return{};var a=n.productId,o=n.productName,c=n.advertisement;return{"data-van-prod-id":a,"data-van-prod-name":o,"data-van-position":r,"data-van-aid":c.adId,"data-van-cid":c.campaignId,"data-van-req-id":c.adRequestId,"data-van-res-id":c.adResponseId,"data-van-cpc":c.actionCost,"data-van-placement":i}},U=n(21),H=n(42),q=g.a.ProductSummaryProvider,Q=g.a.useProductSummaryDispatch,W=g.a.useProductSummary,F=["container","containerNormal","element","clearLink"];function G(e){var t,n,i=e.product,u=e.actionOnClick,l=e.children,m=e.href,p=e.priceBehavior,_=void 0===p?"default":p,g=e.placement,x=e.position,b=e.classes,I=W(),P=I.isLoading,y=I.isHovering,N=I.selectedItem,C=I.listName,S=I.query,R=I.inView,T=I.sponsoredBadge,j=Q(),k=s()(F,{classes:b}).handles,L=v.a.useProductListDispatch(),w=v.a.useProductListState(),A="autocomplete-result-list"===(null==w?void 0:w.listName),M=Object(o.useRef)(null),U=Object(o.useCallback)((function(){null==L||L({type:"SEND_IMPRESSION",args:{product:i,position:x}}),j({type:"SET_IN_VIEW",args:{inView:!0}})}),[j,L,i,x]);d()({ref:M,once:!0,onView:U}),Object(o.useEffect)((function(){i&&j({type:"SET_PRODUCT",args:{product:i}})}),[i,j]),Object(o.useEffect)((function(){x&&j({type:"SET_POSITION",args:{position:x}})}),[x,j]);var q=Object(o.useCallback)((function(){j({type:"SET_HOVER",args:{isHovering:!1}})}),[j]),G=Object(o.useCallback)((function(){j({type:"SET_HOVER",args:{isHovering:!0}})}),[j]),J=Object(o.useCallback)((function(e){j({type:"SET_LOADING",args:{isLoading:e}})}),[j]),z=Object(o.useMemo)((function(){return{product:i,isLoading:P,isHovering:y,handleItemsStateUpdate:J}}),[i,P,y,J]),K=a()(k.container,k.containerNormal,"overflow-hidden br3 h-100 w-100 flex flex-column justify-between center tc"),X=a()(k.element,"pointer pt3 pb4 flex flex-column h-100"),Y=a()(k.clearLink,"h-100 flex flex-column"),Z=null!==(t=null==N?void 0:N.itemId)&&void 0!==t?t:null===(n=null==i?void 0:i.sku)||void 0===n?void 0:n.itemId,$=m?{to:m,onClick:A?u:void 0,onClickCapture:A?void 0:u}:{page:"store.product",params:{slug:null==i?void 0:i.linkText,id:null==i?void 0:i.productId,__listName:C},query:S,onClick:A?u:void 0,onClickCapture:A?void 0:u},ee=V({product:i,position:x,placement:g}),te=Object(H.a)(i,null==T?void 0:T.position,"containerTopLeft"),ne=Object(O.useIntl)();return c.a.createElement(h.default.Provider,{value:z},c.a.createElement(f.a,{product:i,query:{skuId:Z}},c.a.createElement(D,{product:i,inView:R,priceBehavior:_},c.a.createElement("section",Object(r.a)({"aria-label":ne.formatMessage({id:"store/product-summary.shelf.aria-label"},{productName:i.productName}),className:K,onMouseEnter:G,onMouseLeave:q,style:{maxWidth:300},ref:M},ee),c.a.createElement(E.Link,Object(r.a)({className:Y},$),c.a.createElement("article",{className:X},te?c.a.createElement(B,{label:null==T?void 0:T.label}):null,l))))))}function J(e){var t=e.product,n=e.actionOnClick,r=e.href,i=e.priceBehavior,a=void 0===i?"default":i,o=e.trackListName,u=void 0===o||o,s=e.listName,l=e.position,d=e.sponsoredBadgePosition,m=e.sponsoredBadgeLabel,f=e.placement,p=e.classes,v=e.children,_={position:d,label:m};return c.a.createElement(q,{product:t,listName:u?s:void 0,sponsoredBadge:_,isPriceLoading:"async"===a||"asyncOnly1P"===a},c.a.createElement(G,{product:t,href:r,actionOnClick:n,priceBehavior:a,position:l,placement:f,classes:p},v))}J.schema={title:"admin/editor.productSummary.title",description:"admin/editor.productSummary.description"},J.mapCatalogProductToProductSummary=U.b;t.default=J},20:function(e,t,n){"use strict";function r(e){if(e&&0!==e.length){var t=e.find((function(e){return e.sellerDefault}));return t||e[0]}}n.d(t,"a",(function(){return r}))},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return x}));var r=n(11),i=n(37),a=n(20),o=new RegExp(/.+ids\/(\d+)/),c=new RegExp(/http:\/\//);function u(e,t,n){if(!e.includes("/arquivos/ids/"))return e;var r=function(e){var t,n,r,i,a=o.exec(e),c=(n="v",null===(i=null!==(r=null==(t=e)?void 0:t.split("".concat(n,"="))[1])&&void 0!==r?r:"")||void 0===i?void 0:i.split("&")[0]);return a&&a.length>0?{cleanUrl:a[0],vParam:c}:{cleanUrl:e}}(e),i=r.vParam,a=r.cleanUrl;return i?"".concat(a,"-").concat(t,"-").concat(n,"?v=").concat(i):"".concat(a,"-").concat(t,"-").concat(n)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(e){"number"==typeof t&&(t=Math.min(t,3e3)),"number"==typeof n&&(n=Math.min(n,4e3));var r=u(e,t,n),i=r.includes("?")?"&":"?";return"".concat(r).concat(i,"width=").concat(t,"&height=").concat(n,"&aspect=true")}}function l(e){return e.commertialOffer.Price}function d(e){var t=e.commertialOffer.AvailableQuantity;return null!=t&&t>0}function m(e,t){var n=e.filter(p);if(0===n.length)return e[0];if(1===n.length)return n[0];var r=n.map((function(e){return function(e,t){var n=e.sellers;if(1===n.length)return n[0].commertialOffer.Price;var r=n.filter(d).map(l);return"highest"===t?r.reduce((function(e,t){return t>e?t:e})):r.reduce((function(e,t){return tr[e]?n:e}),0):r.reduce((function(e,t,n){return t1&&void 0!==arguments[1]?arguments[1]:"FIRST_AVAILABLE",u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;if(!e)return null;var s,l=Object.assign({},e),d=l.items||[],m=l.properties||[],f=null!==(t=m.find((function(e){return"DefaultSKUSelected"===e.name})))&&void 0!==t?t:null;if(s=1===d.length?d[0]:f?v(d,f.values,c):_(d,c)){var p=null!==(n=Object(a.a)(null==s?void 0:s.sellers))&&void 0!==n?n:O,x=null!==(i=null==s?void 0:s.referenceId)&&void 0!==i?i:[],b=Object(r.a)(x,1),I=b[0],P=void 0===I?E:I,y=null!==(o=null==s?void 0:s.images)&&void 0!==o?o:[],N=y.map((function(e){return Object.assign(Object.assign({},e),{imageUrl:h(e.imageUrl,u)})})),C=Object(r.a)(N,1),S=C[0],R=void 0===S?g:S;l.sku=Object.assign(Object.assign({},s),{seller:p,referenceId:P,image:R,images:N})}return l}},22:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-list-context@0.x/ProductListContext"]},29:function(e,t){e.exports=ReactApollo},32:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/IOMessage"]},40:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},42:function(e,t,n){"use strict";t.a=function(e,t,n){var r;return!!(null===(r=null==e?void 0:e.advertisement)||void 0===r?void 0:r.adId)&&t===n}},44:function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=i.a.createContext(void 0),o=a.Consumer;a.Consumer=function(e){return console.error("If you are seeing this, a component it's using ProductSummaryContext from vtex.product-summary, which is deprecated. Please see the issue https://github.com/vtex-apps/store-issues#28 on how to migrate to the new component."),i.a.createElement(o,e)},t.default=a},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},59:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.on-view@1.x/useOnView"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-summary-context@0.x/ProductSummaryContext"]},60:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/ProductContextProvider"]},61:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/QueryItemsWithSimulation"]},62:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProductDispatch"]},7:function(e,t){e.exports=Classnames},8:function(e,t){e.exports=__RENDER_8_RUNTIME__},86:function(e,t,n){"use strict";n.r(t),function(e){var t=n(4);n.p=Object(t.getPublicPath)("vtex.product-summary@2.90.4");var r=Object(t.register)((function(){return n(105)}),e,"vtex.product-summary@2.90.4","vtex.product-summary@2.x","ProductSummaryCustom");r.renderHotReload,r.setupHMR}.call(this,n(13)(e))}},[[86,"common"]]]);; (window.webpackJsonpvtex_product_summary_2_90_4=window.webpackJsonpvtex_product_summary_2_90_4||[]).push([["ProductSummaryImage"],{0:function(e,t){e.exports=React},10:function(e,t){e.exports=ReactIntl},108:function(e,t,r){"use strict";r.r(t);var a=r(11),i=r(0),n=r.n(i),o=r(38),u=r.n(o),c=r(39),l=r.n(c),m=r(7),s=r.n(m),d=r(53),p=r.n(d),v=r(58),g=r.n(v),h=r(5),f=r.n(h),x=r(40),y=r.n(x),b=r(6),C=r.n(b),I=r(10),E=r(41),_=r(3),w=r.n(_),S=r(21),N=function(e,t,r,i){var n,o=t,u="auto";return i&&"auto"!==i?(u=t*(null!==(n=function(e){if(!e)return null;if("string"==typeof e){if("auto"===e)return null;var t=e.split(":");if(2!==t.length)return null;var r=Object(a.a)(t,2),i=r[0],n=r[1],o=parseFloat(n)/parseFloat(i);return"number"!=typeof o||Number.isNaN(o)?null:o}return"number"==typeof e?e:null}(i))&&void 0!==n?n:1),o>r&&(u/=o/r,o=r),u>r&&(o/=u/r,u=r),o=Math.round(o),u=Math.round(u)):o=Math.min(r,o),Object(S.a)(e,o,u)},P=C.a.useProductSummary,O=["image","imageWrapper","imageContainer","product","imagePlaceholder","mainImageHovered"];function R(e){var t=e.src,r=e.width,a=e.height,i=e.dpi,n=e.aspectRatio;return r||a?Object(S.a)(t,r*i,a*i):n?N(t,300,500,n):t}function L(e){var t=e.images,r=e.hoverImage,a=e.hoverImageLabel,i=null!=r?r:{},n=i.criteria,o=void 0===n?"label":n,u=i.label,c=void 0===u?a:u,l=i.labelMatchCriteria,m=void 0===l?"exact":l,s=i.index;return"label"===o?j(t,c,m):"index"===o?function(e,t){return null==t||Number.isNaN(t)?null:e[t]}(t,s):null}function B(e){var t=e.width,r=e.height,a=e.aspectRatio,i=e.maxHeight;return t||r?{width:"100%",height:r,objectFit:"contain",maxHeight:"unset",maxWidth:t}:a||i?{width:"100%",height:"100%",objectFit:"contain",maxHeight:null!=i?i:"unset"}:void 0}function M(e){var t=e.showCollections,r=e.productClusters,a=e.children;if(!t||!r||0===r.length)return n.a.createElement(n.a.Fragment,null,a);var i=r.map((function(e){return e.name}));return n.a.createElement(u.a,{collectionBadgesText:i},a)}function H(e){var t=e.showBadge,r=e.commertialOffer,a=e.badgeText,i=e.children;return t?n.a.createElement(l.a,{listPrice:r.ListPrice,sellingPrice:r.Price,label:a},i):n.a.createElement(n.a.Fragment,null,i)}function j(e,t,r){return t?"contains"===r?e.find((function(e){var r=e.imageLabel;return null==r?void 0:r.includes(t)})):e.find((function(e){return e.imageLabel===t})):null}function k(e){var t=e.src,r=e.width,a=e.height,i=e.onError,o=e.alt,u=e.className,c=e.aspectRatio,l=e.maxHeight,m=e.fetchpriority,s=void 0===m?"auto":m,d=p()().isMobile?2:1;return n.a.createElement("img",{src:R({src:t,width:r,height:a,dpi:d,aspectRatio:c}),style:B({width:r,height:a,aspectRatio:c,maxHeight:l}),loading:"low"===s?"lazy":"eager",alt:o,className:u,onError:i,fetchpriority:s})}function T(e){var t,r,o,u,c,l,m,d,v,h=e.showBadge,x=void 0===h||h,b=e.badgeText,C=e.displayMode,_=void 0===C?"normal":C,S=e.mainImageLabel,N=void 0===S?"":S,R=e.hoverImageLabel,B=void 0===R?"":R,T=e.hoverImage,A=e.showCollections,F=void 0!==A&&A,U=e.placeholder,D=e.width,W=e.height,V=e.aspectRatio,K=e.maxHeight,q=e.classes,z=e.fetchpriority,J=void 0===z?"byPosition":z,Z=P(),Q=Z.product,G=Z.position,X=f()(O,{classes:q}),Y=X.handles,$=X.withModifiers,ee=Object(I.useIntl)(),te=Object(i.useState)(!1),re=Object(a.a)(te,2),ae=re[0],ie=re[1],ne=function(){return ie(!0)},oe=p()().isMobile,ue=(null!==(t=y()())&&void 0!==t?t:{}).skuSelector,ce=(ue=void 0===ue?{}:ue).selectedImageVariationSKU,le=null!=Q?Q:{},me=le.productClusters,se=le.productName,de=null==Q?void 0:Q.sku,pe=g()({widthProp:D,heightProp:W,aspectRatioProp:V,maxHeightProp:K}),ve=pe.widthProp,ge=pe.heightProp,he=pe.aspectRatioProp,fe=pe.maxHeightProp,xe=s()(w.a.imageContainer,Y.imageWrapper,"inline"!==_&&"db w-100 center"),ye=[parseFloat(null!==(r=null!=ve?ve:ge)&&void 0!==r?r:0),parseFloat(null!==(o=null!=ge?ge:ve)&&void 0!==o?o:0)],be=ye[0],Ce=ye[1],Ie=s()(w.a.imageStackContainer,!oe&&w.a.hoverEffect),Ee=s()("dib relative",Y.imageContainer,Ie),_e=null!==(c=null===(u=null==de?void 0:de.image)||void 0===u?void 0:u.imageUrl)&&void 0!==c?c:"",we=!_e||ae;if(!U&&we)return n.a.createElement("div",{className:xe},n.a.createElement("div",{className:Ee},n.a.createElement(E.a,{cssHandle:Y.imagePlaceholder})));var Se=null!==(l=null==de?void 0:de.images)&&void 0!==l?l:[],Ne=L({images:Se,hoverImage:T,hoverImageLabel:B});if(null==ce&&N){var Pe="string"==typeof N?j(Se,N):j(Se,N.label,N.labelMatchCriteria);Pe&&(_e=Pe.imageUrl)}var Oe,Re,Le=s()("inline"===_?w.a.imageInline:w.a.imageNormal),Be=null!==(v=null===(d=null===(m=Q.sku)||void 0===m?void 0:m.seller)||void 0===d?void 0:d.commertialOffer)&&void 0!==v?v:{},Me=s()(Le,Y.image,Boolean(Ne)&&Y.mainImageHovered),He=s()("w-100 h-100 dn absolute top-0 left-0 z-999",$("image","hover"),Le,!oe&&w.a.hoverImage);return n.a.createElement("div",{className:xe,"aria-label":ee.formatMessage({id:"store/product-summary.image.aria-label"},{productName:Q.productName})},n.a.createElement(M,{showCollections:F,productClusters:me},n.a.createElement(H,{showBadge:x,commertialOffer:Be,badgeText:b},n.a.createElement("div",{className:Ee},n.a.createElement(k,{src:we?U:_e,width:be,height:Ce,aspectRatio:he,maxHeight:fe,alt:se,className:Me,onError:ne,fetchpriority:"byPosition"===J?(Oe=oe,Re=G,Re?Oe?1===Re?"high":"low":Re<4?"high":"low":"low"):J}),Ne&&!oe&&n.a.createElement(k,{src:Ne.imageUrl,width:be,height:Ce,aspectRatio:he,maxHeight:fe,alt:se,className:He,onError:ne})))))}T.schema={title:"admin/editor.productSummaryImage.title",description:"admin/editor.productSummaryImage.description",type:"object",properties:{showBadge:{type:"boolean",title:"admin/editor.productSummary.showBadge.title",default:!0,isLayout:!0},showCollections:{type:"boolean",title:"admin/editor.productSummary.showCollections.title",default:!1,isLayout:!0},displayMode:{title:"admin/editor.productSummary.displayMode.title",type:"string",enum:["normal","inline"],default:"normal",isLayout:!0},hoverImageLabel:{title:"admin/editor.productSummaryImage.hoverImageLabel.title",description:"admin/editor.productSummaryImage.hoverImageLabel.description",type:"string",default:"",isLayout:!1},hoverImage:{type:"object",properties:{criteria:{title:"admin/editor.productSummaryImage.hoverImage.criteria.title",enum:["index","label"]}},dependencies:{criteria:{oneOf:[{properties:{criteria:{enum:["index"]},index:{title:"admin/editor.productSummaryImage.hoverImage.criteria.index",type:"number"}}},{properties:{criteria:{enum:["label"]},label:{title:"admin/editor.productSummaryImage.hoverImage.criteria.label",type:"string"},labelMatchCriteria:{title:"admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria",widget:{"ui:widget":"radio"},type:"string",enum:["exact","contains"],default:"exact"}}}]}}},fetchpriority:{title:"admin/editor.productSummaryImage.fetchpriority.title",enum:["high","low","auto","byPosition"],enumNames:["admin/editor.productSummaryImage.fetchpriority.high","admin/editor.productSummaryImage.fetchpriority.low","admin/editor.productSummaryImage.fetchpriority.auto","admin/editor.productSummaryImage.fetchpriority.byPosition"],widget:{"ui:widget":"radio"},default:"byPosition"}}};t.default=T},20:function(e,t,r){"use strict";function a(e){if(e&&0!==e.length){var t=e.find((function(e){return e.sellerDefault}));return t||e[0]}}r.d(t,"a",(function(){return a}))},21:function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return C}));var a=r(11),i=r(37),n=r(20),o=new RegExp(/.+ids\/(\d+)/),u=new RegExp(/http:\/\//);function c(e,t,r){if(!e.includes("/arquivos/ids/"))return e;var a=function(e){var t,r,a,i,n=o.exec(e),u=(r="v",null===(i=null!==(a=null==(t=e)?void 0:t.split("".concat(r,"="))[1])&&void 0!==a?a:"")||void 0===i?void 0:i.split("&")[0]);return n&&n.length>0?{cleanUrl:n[0],vParam:u}:{cleanUrl:e}}(e),i=a.vParam,n=a.cleanUrl;return i?"".concat(n,"-").concat(t,"-").concat(r,"?v=").concat(i):"".concat(n,"-").concat(t,"-").concat(r)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(e){"number"==typeof t&&(t=Math.min(t,3e3)),"number"==typeof r&&(r=Math.min(r,4e3));var a=c(e,t,r),i=a.includes("?")?"&":"?";return"".concat(a).concat(i,"width=").concat(t,"&height=").concat(r,"&aspect=true")}}function m(e){return e.commertialOffer.Price}function s(e){var t=e.commertialOffer.AvailableQuantity;return null!=t&&t>0}function d(e,t){var r=e.filter(v);if(0===r.length)return e[0];if(1===r.length)return r[0];var a=r.map((function(e){return function(e,t){var r=e.sellers;if(1===r.length)return r[0].commertialOffer.Price;var a=r.filter(s).map(m);return"highest"===t?a.reduce((function(e,t){return t>e?t:e})):a.reduce((function(e,t){return ta[e]?r:e}),0):a.reduce((function(e,t,r){return t1&&void 0!==arguments[1]?arguments[1]:"FIRST_AVAILABLE",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;if(!e)return null;var l,m=Object.assign({},e),s=m.items||[],d=m.properties||[],p=null!==(t=d.find((function(e){return"DefaultSKUSelected"===e.name})))&&void 0!==t?t:null;if(l=1===s.length?s[0]:p?g(s,p.values,u):h(s,u)){var v=null!==(r=Object(n.a)(null==l?void 0:l.sellers))&&void 0!==r?r:y,C=null!==(i=null==l?void 0:l.referenceId)&&void 0!==i?i:[],I=Object(a.a)(C,1),E=I[0],_=void 0===E?x:E,w=null!==(o=null==l?void 0:l.images)&&void 0!==o?o:[],S=w.map((function(e){return Object.assign(Object.assign({},e),{imageUrl:b(e.imageUrl,c)})})),N=Object(a.a)(S,1),P=N[0],O=void 0===P?f:P;m.sku=Object.assign(Object.assign({},l),{seller:v,referenceId:_,image:O,images:S})}return m}},3:function(e,t,r){e.exports={containerInline:"vtex-product-summary-2-x-containerInline",imageContainer:"vtex-product-summary-2-x-imageContainer",container:"vtex-product-summary-2-x-container",containerSmall:"vtex-product-summary-2-x-containerSmall",containerInlinePrice:"vtex-product-summary-2-x-containerInlinePrice",information:"vtex-product-summary-2-x-information",element:"vtex-product-summary-2-x-element",image:"vtex-product-summary-2-x-image",buyButtonContainer:"vtex-product-summary-2-x-buyButtonContainer",buyButton:"vtex-product-summary-2-x-buyButton",description:"vtex-product-summary-2-x-description",quantityStepperContainer:"vtex-product-summary-2-x-quantityStepperContainer",imageInline:"vtex-product-summary-2-x-imageInline",isHidden:"vtex-product-summary-2-x-isHidden",containerNormal:"vtex-product-summary-2-x-containerNormal",nameContainer:"vtex-product-summary-2-x-nameContainer",clearLink:"vtex-product-summary-2-x-clearLink",aspectRatio:"vtex-product-summary-2-x-aspectRatio",priceContainer:"vtex-product-summary-2-x-priceContainer",SKUSelectorContainer:"vtex-product-summary-2-x-SKUSelectorContainer",attachmentListContainer:"vtex-product-summary-2-x-attachmentListContainer",attachmentItemContainer:"vtex-product-summary-2-x-attachmentItemContainer",imageNormal:"vtex-product-summary-2-x-imageNormal",addToListBtn:"vtex-product-summary-2-x-addToListBtn",imagePlaceholder:"vtex-product-summary-2-x-imagePlaceholder",attachmentChildrenContainer:"vtex-product-summary-2-x-attachmentChildrenContainer",imageStackContainer:"vtex-product-summary-2-x-imageStackContainer",hoverEffect:"vtex-product-summary-2-x-hoverEffect",hoverImage:"vtex-product-summary-2-x-hoverImage",mainImageHovered:"vtex-product-summary-2-x-mainImageHovered",priceSpinner:"vtex-product-summary-2-x-priceSpinner",spin:"vtex-product-summary-2-x-spin",sponsoredBadgeContainer:"vtex-product-summary-2-x-sponsoredBadgeContainer",sponsoredBadgeText:"vtex-product-summary-2-x-sponsoredBadgeText"}},38:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/CollectionBadges"]},39:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/DiscountBadge"]},40:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},41:function(e,t,r){"use strict";var a=r(0),i=r.n(a);t.a=function(e){var t=e.cssHandle;return i.a.createElement("div",{className:"relative"},i.a.createElement("div",{className:"".concat(t," absolute w-100 h-100 contain bg-center")}),i.a.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"image-placeholder"},i.a.createElement("rect",{width:"512",height:"512",fill:"#F2F2F2"}),i.a.createElement("rect",{x:"183.857",y:"180.2",width:"144.286",height:"150.474",stroke:"#CACBCC",strokeWidth:"2"}),i.a.createElement("path",{d:"M183.78 303.688H328.214",stroke:"#CACBCC",strokeWidth:"2"}),i.a.createElement("path",{d:"M205.082 279.563L223.599 240.507L242.116 260.035L269.892 220.979L306.926 279.563H205.082Z",stroke:"#CACBCC",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.a.createElement("path",{d:"M252.225 213.939C252.225 219.822 247.66 224.52 242.114 224.52C236.569 224.52 232.004 219.822 232.004 213.939C232.004 208.057 236.569 203.359 242.114 203.359C247.66 203.359 252.225 208.057 252.225 213.939Z",stroke:"#CACBCC",strokeWidth:"2"})))}},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},53:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},58:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValues"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-summary-context@0.x/ProductSummaryContext"]},7:function(e,t){e.exports=Classnames},85:function(e,t,r){"use strict";r.r(t),function(e){var t=r(4);r.p=Object(t.getPublicPath)("vtex.product-summary@2.90.4");var a=Object(t.register)((function(){return r(108)}),e,"vtex.product-summary@2.90.4","vtex.product-summary@2.x","ProductSummaryImage");a.renderHotReload,a.setupHMR}.call(this,r(13)(e))}},[[85,"common"]]]);; (window.webpackJsonpvtex_product_summary_2_90_4=window.webpackJsonpvtex_product_summary_2_90_4||[]).push([["ProductSummaryName"],{0:function(e,t){e.exports=React},10:function(e,t){e.exports=ReactIntl},33:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/ProductName"]},42:function(e,t,a){"use strict";t.a=function(e,t,a){var o;return!!(null===(o=null==e?void 0:e.advertisement)||void 0===o?void 0:o.adId)&&t===a}},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-summary-context@0.x/ProductSummaryContext"]},92:function(e,t,a){"use strict";a.r(t),function(e){var t=a(4);a.p=Object(t.getPublicPath)("vtex.product-summary@2.90.4");var o=Object(t.register)((function(){return a(93)}),e,"vtex.product-summary@2.90.4","vtex.product-summary@2.x","ProductSummaryName");o.renderHotReload,o.setupHMR}.call(this,a(13)(e))},93:function(e,t,a){"use strict";a.r(t);var o=a(9),r=a(0),n=a.n(r),s=a(33),c=a.n(s),u=a(5),d=a.n(u),m=a(6),l=a.n(m),i=a(10),p=a(42),v=l.a.useProductSummary,N=["nameContainer","nameWrapper","brandName","skuName","productReference","productNameLoader"],_={showProductReference:!1,showBrandName:!1,showSku:!1};function f(e){var t,a=e.showFieldsProps,r=void 0===a?_:a,s=e.tag,u=void 0===s?"h3":s,m=e.classes,l=v(),f=l.product,b=l.sponsoredBadge,x=d()(N,{classes:m}).handles,h=null==f?void 0:f.productName,y=null===(t=null==f?void 0:f.sku)||void 0===t?void 0:t.name,w=null==f?void 0:f.brand,R=Object(p.a)(f,null==b?void 0:b.position,"titleTop"),P="".concat(x.nameContainer," flex items-start justify-center pv6"),C="".concat(x.nameWrapper," overflow-hidden c-on-base f5"),E="".concat(x.brandName," t-body"),O="".concat(x.skuName," t-small"),S="".concat(x.productNameLoader," pt5 overflow-hidden"),g=Object(i.useIntl)();return n.a.createElement("div",{className:P,"aria-label":g.formatMessage({id:"store/product-summary.name.aria-label"},{productName:f.productName})},n.a.createElement(c.a,Object(o.a)({className:C,brandNameClass:E,skuNameClass:O,loaderClass:S,showSponsoredBadge:R,sponsoredBadgeLabel:null==b?void 0:b.label,productReferenceClass:x.productReference,name:h,skuName:y,brandName:w,tag:u},r)))}f.schema={title:"admin/editor.productSummaryName.title",type:"object",properties:{showFieldsProps:c.a.schema}},t.default=f}},[[92,"common"]]]);; (window.webpackJsonpvtex_product_summary_2_90_4=window.webpackJsonpvtex_product_summary_2_90_4||[]).push([["ProductSummaryPrice"],{0:function(e,t){e.exports=React},18:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/ProductPrice"]},2:function(e,t){e.exports=R},3:function(e,t,i){e.exports={containerInline:"vtex-product-summary-2-x-containerInline",imageContainer:"vtex-product-summary-2-x-imageContainer",container:"vtex-product-summary-2-x-container",containerSmall:"vtex-product-summary-2-x-containerSmall",containerInlinePrice:"vtex-product-summary-2-x-containerInlinePrice",information:"vtex-product-summary-2-x-information",element:"vtex-product-summary-2-x-element",image:"vtex-product-summary-2-x-image",buyButtonContainer:"vtex-product-summary-2-x-buyButtonContainer",buyButton:"vtex-product-summary-2-x-buyButton",description:"vtex-product-summary-2-x-description",quantityStepperContainer:"vtex-product-summary-2-x-quantityStepperContainer",imageInline:"vtex-product-summary-2-x-imageInline",isHidden:"vtex-product-summary-2-x-isHidden",containerNormal:"vtex-product-summary-2-x-containerNormal",nameContainer:"vtex-product-summary-2-x-nameContainer",clearLink:"vtex-product-summary-2-x-clearLink",aspectRatio:"vtex-product-summary-2-x-aspectRatio",priceContainer:"vtex-product-summary-2-x-priceContainer",SKUSelectorContainer:"vtex-product-summary-2-x-SKUSelectorContainer",attachmentListContainer:"vtex-product-summary-2-x-attachmentListContainer",attachmentItemContainer:"vtex-product-summary-2-x-attachmentItemContainer",imageNormal:"vtex-product-summary-2-x-imageNormal",addToListBtn:"vtex-product-summary-2-x-addToListBtn",imagePlaceholder:"vtex-product-summary-2-x-imagePlaceholder",attachmentChildrenContainer:"vtex-product-summary-2-x-attachmentChildrenContainer",imageStackContainer:"vtex-product-summary-2-x-imageStackContainer",hoverEffect:"vtex-product-summary-2-x-hoverEffect",hoverImage:"vtex-product-summary-2-x-hoverImage",mainImageHovered:"vtex-product-summary-2-x-mainImageHovered",priceSpinner:"vtex-product-summary-2-x-priceSpinner",spin:"vtex-product-summary-2-x-spin",sponsoredBadgeContainer:"vtex-product-summary-2-x-sponsoredBadgeContainer",sponsoredBadgeText:"vtex-product-summary-2-x-sponsoredBadgeText"}},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-summary-context@0.x/ProductSummaryContext"]},94:function(e,t,i){"use strict";i.r(t),function(e){var t=i(4);i.p=Object(t.getPublicPath)("vtex.product-summary@2.90.4");var r=Object(t.register)((function(){return i(95)}),e,"vtex.product-summary@2.90.4","vtex.product-summary@2.x","ProductSummaryPrice");r.renderHotReload,r.setupHMR}.call(this,i(13)(e))},95:function(e,t,i){"use strict";i.r(t);var r=i(0),n=i.n(r),a=i(2),s=i(18),o=i.n(s),c=i(6),l=i.n(c),m=i(5),u=i.n(m),d=i(3),p=i.n(d),x=l.a.useProductSummary,P=["priceContainer","productPriceClass","listPriceContainer","listPriceLabel","listPrice","sellingPriceContainer","sellingPriceLabel","sellingPrice","savingsContainer","savings","interestRate","installmentContainer","listPriceRange","sellingPriceRange","priceLoading"];function v(e,t){if(!e||!e.items&&!e.priceRange)return[];if(e.priceRange){var i=e.priceRange[t];return i?[i.lowPrice,i.highPrice]:[]}var r="sellingPrice"===t?"Price":"ListPrice";return Object(a.flatten)(Object(a.pluck)("sellers",e.items)).map(Object(a.path)(["commertialOffer",r])).filter((function(e){return 0!==e}))}function y(e){var t,i,r=e.showListPrice,a=void 0===r||r,s=e.showSellingPriceRange,c=void 0!==s&&s,l=e.showLabels,m=void 0===l||l,d=e.showInstallments,y=void 0===d||d,g=e.showDiscountValue,C=void 0!==g&&g,h=e.labelSellingPrice,b=void 0===h?"":h,f=e.labelListPrice,L=void 0===f?"":f,S=e.showBorders,w=void 0!==S&&S,R=e.showListPriceRange,_=void 0!==R&&R,I=e.classes,N=x(),E=N.product,B=N.isLoading,O=N.isPriceLoading,k=u()(P,{classes:I}).handles,j=null===(i=null===(t=null==E?void 0:E.sku)||void 0===t?void 0:t.seller)||void 0===i?void 0:i.commertialOffer;if(B||O)return n.a.createElement("div",{className:"".concat(k.priceLoading," flex items-end justify-end w-100 h1 pr6")},n.a.createElement("div",{className:p.a.priceSpinner}));var H={containerClass:"flex flex-column justify-end items-center"+(w?"":" ".concat(k.priceContainer," pv5")),sellingPriceClass:"".concat(k.sellingPrice," dib ph2 t-body t-heading-5-ns")},T=c?v(E,"sellingPrice"):[],D=_?v(E,"listPrice"):[],M=j.Price;return n.a.createElement("div",{className:H.containerClass},0!==M&&n.a.createElement(o.a,{className:"".concat(k.productPriceClass," flex flex-column justify-start"),listPriceContainerClass:"".concat(k.listPriceContainer," pv1 normal c-muted-2"),listPriceLabelClass:"".concat(k.listPriceLabel," dib strike t-small t-mini"),listPriceClass:"".concat(k.listPrice," dib ph2 strike t-small-ns t-mini"),sellingPriceContainerClass:"".concat(k.sellingPriceContainer," pt1 pb3 c-on-base"),sellingPriceLabelClass:"".concat(k.sellingPriceLabel," dib"),sellingPriceClass:H.sellingPriceClass,savingsContainerClass:"".concat(k.savingsContainer," t-small-ns c-muted-2"),savingsClass:"".concat(k.savings," dib"),interestRateClass:"".concat(k.interestRate," dib pl2"),installmentContainerClass:"".concat(k.installmentContainer," t-small-ns c-muted-2"),listPrice:j.ListPrice,sellingPriceList:T,listPriceRangeClass:"".concat(k.listPriceRange," dib ph2 t-small-ns strike"),sellingPriceRangeClass:"".concat(k.sellingPriceRange," dib ph2 t-small-ns"),sellingPrice:j.Price,installments:j.Installments,showListPrice:a,showSellingPriceRange:c,showLabels:m,showInstallments:y,labelSellingPrice:b,labelListPrice:L,listPriceList:D,showListPriceRange:_,showSavings:C}))}y.schema={title:"admin/editor.productSummaryPrice.title",description:"admin/editor.productSummaryPrice.description",type:"object",properties:{showListPrice:{type:"boolean",title:"admin/editor.productSummaryPrice.showListPrice.title",default:!0,isLayout:!0},showSellingPriceRange:{type:"boolean",title:"admin/editor.productSummaryPrice.showSellingPriceRange.title",default:!1,isLayout:!0},showListPriceRange:{type:"boolean",title:"admin/editor.productSummaryPrice.showListPriceRange.title",default:!1,isLayout:!0},showInstallments:{type:"boolean",title:"admin/editor.productSummaryPrice.showInstallments.title",default:!0,isLayout:!0},showDiscountValue:{type:"boolean",title:"admin/editor.productSummaryPrice.showDiscountValue.title",default:!1},showLabels:{type:"boolean",title:"admin/editor.productSummaryPrice.showLabels.title",default:!0,isLayout:!0},showBorders:{type:"boolean",title:"admin/editor.productSummaryPrice.showBorders.title",default:!1,isLayout:!0}}},t.default=y}},[[94,"common"]]]);;