enqueueScripts([function(){ (window.webpackJsonpvtex_css_handles_1_0_1=window.webpackJsonpvtex_css_handles_1_0_1||[]).push([["useCustomClasses"],{1:function(s,e){s.exports=React},19:function(s,e,t){"use strict";t.r(e),function(s){var e=t(0);t.p=Object(e.getPublicPath)("vtex.css-handles@1.0.1");var n=Object(e.register)((function(){return t(9)}),s,"vtex.css-handles@1.0.1","vtex.css-handles@1.x","useCustomClasses");n.renderHotReload,n.setupHMR}.call(this,t(4)(s))},9:function(s,e,t){"use strict";t.r(e),t.d(e,"SYMBOL_CUSTOM_CLASSES",(function(){return c}));var n=t(1),c=Symbol("customClasses");e.default=function(s){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=Object(n.useMemo)(s,e);return t.__useCustomClasses=c,t}}},[[19,"common"]]]); },function(){ (window.webpackJsonpvtex_css_handles_1_0_1=window.webpackJsonpvtex_css_handles_1_0_1||[]).push([["withCssHandles"],{1:function(e,n){e.exports=React},20:function(e,n,t){"use strict";t.r(n),function(e){var n=t(0);t.p=Object(n.getPublicPath)("vtex.css-handles@1.0.1");var s=Object(n.register)((function(){return t(21)}),e,"vtex.css-handles@1.0.1","vtex.css-handles@1.x","withCssHandles");s.renderHotReload,s.setupHMR}.call(this,t(4)(e))},21:function(e,n,t){"use strict";t.r(n);var s=t(11),a=t(1),c=t.n(a),o=t(10);n.default=function(e,n){return function(t){var a,r,i=function(a){var r=Object(o.default)(e,n);return c.a.createElement(t,Object(s.a)({},a,r))},u=null!==(r=null!==(a=t.displayName)&&void 0!==a?a:t.name)&&void 0!==r?r:"Component";return i.displayName="withCssHandles(".concat(u,")"),i}}},8:function(e,n){e.exports=__RENDER_8_RUNTIME__}},[[20,"common",0]]]); },function(){ !function(e){function t(t){for(var r,u,c=t[0],a=t[1],l=t[2],d=0,s=[];de.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}))}function l(t,e){var n=e.name,r=e.value;return Boolean(t.variations.find((function(t){return t.name===n&&t.values.some((function(t){return t===r}))})))}var d=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=null!==(e=t.skuId)&&void 0!==e?e:t.idsku;if(s)return s;var i=Object.entries(t).filter((function(t){return Object(r.a)(t,1)[0].startsWith("property__")})).map((function(t){var e=Object(r.a)(t,2),n=e[0],s=e[1];return[n.slice("property__".length),s]}));if(0!==i.length){var a=n.filter((function(t){return i.every((function(e){var n=Object(r.a)(e,2),s=n[0],i=n[1];return l(t,{name:s,value:i})}))}));if(0!==a.length){var c=a.find((function(t){return o(t)}));return c?c.itemId:a[0].itemId}}},O={loadingItem:!1,product:void 0,selectedItem:null,selectedQuantity:1,skuSelector:{selectedImageVariationSKU:null,isVisible:!1,areAllVariationsSelected:!0},buyButton:{clicked:!1},assemblyOptions:{items:{},inputValues:{},areGroupsValid:{}}};function b(t,e){var n,r;switch(e.type){case"SET_QUANTITY":var s=e.args||{};return Object.assign(Object.assign({},t),{selectedQuantity:s.quantity});case"SELECT_IMAGE_VARIATION":var i=e.args||{};return Object.assign(Object.assign({},t),{skuSelector:Object.assign(Object.assign({},t.skuSelector),{selectedImageVariationSKU:i.selectedImageVariationSKU})});case"SKU_SELECTOR_SET_VARIATIONS_SELECTED":var a=e.args||{};return Object.assign(Object.assign({},t),{skuSelector:Object.assign(Object.assign({},t.skuSelector),{areAllVariationsSelected:a.allSelected})});case"SET_BUY_BUTTON_CLICKED":var c=e.args||{};return Object.assign(Object.assign({},t),{buyButton:Object.assign(Object.assign({},t.buyButton),{clicked:c.clicked})});case"SKU_SELECTOR_SET_IS_VISIBLE":var o=e.args||{};return Object.assign(Object.assign({},t),{skuSelector:Object.assign(Object.assign({},t.skuSelector),{isVisible:o.isVisible})});case"SET_SELECTED_ITEM":var l=e.args||{};return Object.assign(Object.assign({},t),{loadingItem:!1,selectedItem:l.item});case"SET_LOADING_ITEM":return Object.assign(Object.assign({},t),{loadingItem:Boolean(e.args.loadingItem)});case"SET_ASSEMBLY_OPTIONS":var d=e.args||{},b=d.groupId,v=void 0===b?"":b,g=d.groupItems,j=void 0===g?[]:g,p=d.groupInputValues,f=void 0===p?{}:p,m=d.isValid,_=void 0!==m&&m;return Object.assign(Object.assign({},t),{assemblyOptions:Object.assign(Object.assign({},t.assemblyOptions),{inputValues:Object.assign(Object.assign({},t.assemblyOptions.inputValues),Object(u.a)({},v,f)),items:Object.assign(Object.assign({},t.assemblyOptions.items),Object(u.a)({},v,j)),areGroupsValid:Object.assign(Object.assign({},t.assemblyOptions.areGroupsValid),Object(u.a)({},v,_))})});case"SET_PRODUCT":var S=e.args||{},E=(null===(n=null==t?void 0:t.product)||void 0===n?void 0:n.linkText)!==(null===(r=null==S?void 0:S.product)||void 0===r?void 0:r.linkText);return Object.assign(Object.assign(Object.assign({},t),E?O:{}),{product:S.product});default:return t}}function v(t,e){var n;return t?e.find((function(e){return e.itemId===t})):null!==(n=e.find(o))&&void 0!==n?n:e[0]}function g(t){var e,n=t.query,r=t.product,s=null!==(e=null==r?void 0:r.items)&&void 0!==e?e:[];return Object.assign(Object.assign({},O),{selectedItem:v(d(n,s),s),product:r})}e.default=function(t){var e=t.query,n=t.product,u=t.children,o=function(t){var e=t.query,n=t.product;return Object(s.useReducer)(b,{query:e,product:n},g)}({query:e,product:n}),l=Object(r.a)(o,2),O=l[0],j=l[1];return function(t,e){Object(s.useEffect)((function(){t&&e({type:"SET_PRODUCT",args:{product:t}})}),[t,e])}(n,j),function(t,e,n){Object(s.useEffect)((function(){var r,s=null!==(r=null==e?void 0:e.items)&&void 0!==r?r:[];t({type:"SET_SELECTED_ITEM",args:{item:v(n,s)}})}),[t,n,e])}(j,n,d(e,null==n?void 0:n.items)),i.a.createElement(a.default.Provider,{value:O},i.a.createElement(c.ProductDispatchContext.Provider,{value:j},u))}},2:function(t,e,n){"use strict";n.r(e);var r=n(0),s=Object(r.createContext)({});e.default=s},3:function(t,e,n){"use strict";n.r(e),n.d(e,"ProductDispatchContext",(function(){return s}));var r=n(0),s=Object(r.createContext)(null);e.default={ProductDispatchContext:s,useProductDispatch:function(){return Object(r.useContext)(s)}}},8:function(t,e,n){"use strict";n.r(e),function(t){var e=n(1);n.p=Object(e.getPublicPath)("vtex.product-context@0.10.1");var r=Object(e.register)((function(){return n(16)}),t,"vtex.product-context@0.10.1","vtex.product-context@0.x","ProductContextProvider");r.renderHotReload,r.setupHMR}.call(this,n(4)(t))}},[[8,"common"]]]); },function(){ (window.webpackJsonpvtex_product_context_0_10_1=window.webpackJsonpvtex_product_context_0_10_1||[]).push([["useProductDispatch"],{0:function(t,e){t.exports=React},14:function(t,e,c){"use strict";c.r(e),function(t){var e=c(1);c.p=Object(e.getPublicPath)("vtex.product-context@0.10.1");var n=Object(e.register)((function(){return c(15)}),t,"vtex.product-context@0.10.1","vtex.product-context@0.x","useProductDispatch");n.renderHotReload,n.setupHMR}.call(this,c(4)(t))},15:function(t,e,c){"use strict";c.r(e);var n=c(0),o=c(3);e.default=function(){return Object(n.useContext)(o.ProductDispatchContext)}},3:function(t,e,c){"use strict";c.r(e),c.d(e,"ProductDispatchContext",(function(){return o}));var n=c(0),o=Object(n.createContext)(null);e.default={ProductDispatchContext:o,useProductDispatch:function(){return Object(n.useContext)(o)}}}},[[14,"common"]]]); },function(){ (window.webpackJsonpvtex_product_context_0_10_1=window.webpackJsonpvtex_product_context_0_10_1||[]).push([["ProductContext"],[function(t,e){t.exports=React},,function(t,e,c){"use strict";c.r(e);var o=c(0),n=Object(o.createContext)({});e.default=n},,,,,function(t,e,c){"use strict";c.r(e),function(t){var e=c(1);c.p=Object(e.getPublicPath)("vtex.product-context@0.10.1");var o=Object(e.register)((function(){return c(2)}),t,"vtex.product-context@0.10.1","vtex.product-context@0.x","ProductContext");o.renderHotReload,o.setupHMR}.call(this,c(4)(t))}],[[7,"common"]]]); },function(){ (window.webpackJsonpvtex_product_context_0_10_1=window.webpackJsonpvtex_product_context_0_10_1||[]).push([["ProductDispatchContext"],{0:function(t,e){t.exports=React},3:function(t,e,c){"use strict";c.r(e),c.d(e,"ProductDispatchContext",(function(){return n}));var o=c(0),n=Object(o.createContext)(null);e.default={ProductDispatchContext:n,useProductDispatch:function(){return Object(o.useContext)(n)}}},9:function(t,e,c){"use strict";c.r(e),function(t){var e=c(1);c.p=Object(e.getPublicPath)("vtex.product-context@0.10.1");var o=Object(e.register)((function(){return c(3)}),t,"vtex.product-context@0.10.1","vtex.product-context@0.x","ProductDispatchContext");o.renderHotReload,o.setupHMR}.call(this,c(4)(t))}},[[9,"common"]]]); },function(){ !function(e){function t(t){for(var r,c,u=t[0],a=t[1],l=t[2],p=0,s=[];pe.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.length)&&(e=t.length);for(var r=0,n=new Array(e);r1?Object.assign(Object.assign({},i),o({},e.itemId,{selectedItem:u.selectedItem,product:u.product,quantity:u.quantity-1})):i}))}}),[]),p=Object(c.useMemo)((function(){return{items:Object.values(u),addItemToGroup:s}}),[u,s]);return a.a.createElement(d.Provider,{value:p},e)},s=function(){return Object(c.useContext)(d)};e.default={ProductGroupProvider:f,useProductGroup:s}}]); },function(){ !function(e){function t(t){for(var r,u,c=t[0],a=t[1],f=t[2],s=0,p=[];sn&&(o=n,x(O,"Set "+i+" to max value")),M[i]=""+o}function i(e){return v.substr(v.indexOf(":")+a+e)}function o(e,n){var t,i,o;t=function(){var t,i;H("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=M.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},i=32,h[o=n]||(h[o]=setTimeout((function(){h[o]=null,t()}),i))}function r(e){var n=e.getBoundingClientRect();return E(O),{x:Math.floor(Number(n.left)+Number(d.x)),y:Math.floor(Number(n.top)+Number(d.y))}}function u(e){var n=e?r(M.iframe):{x:0,y:0},t={x:Number(M.width)+n.x,y:Number(M.height)+n.y};x(O,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):I(O,"Unable to scroll to requested position, window.parentIFrame not found"):(d=t,f(),x(O,"--"))}function f(){!1!==m("onScroll",d)?T(O):N()}function m(e,n){return k(O,e,n)}var g,w,y,v=e.data,M={},O=null;"[iFrameResizerChild]Ready"===v?function(){for(var e in l)H("iFrame requested init",j(e),document.getElementById(e),e)}():s===(""+v).substr(0,c)&&v.substr(c).split(":")[0]in l?(y=v.substr(c).split(":"),M={iframe:l[y[0]]&&l[y[0]].iframe,id:y[0],height:y[1],width:y[2],type:y[3]},O=M.id,l[O]&&(l[O].loaded=!0),(w=M.type in{true:1,false:1,undefined:1})&&x(O,"Ignoring init message from meta parent page"),!w&&function(e){var n=!0;return l[e]||(n=!1,I(M.type+" No settings for "+e+". Message was: "+v)),n}(O)&&(x(O,"Received: "+v),g=!0,null===M.iframe&&(I(O,"IFrame ("+M.id+") not found"),g=!1),g&&function(){var n,t=e.origin,i=l[O]&&l[O].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(x(O,"Checking connection is from allowed list of origins: "+i);el[s]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}t("Height"),t("Width"),n("maxHeight"),n("minHeight"),n("maxWidth"),n("minWidth")}(),"number"!=typeof(l[s]&&l[s].bodyMargin)&&"0"!==(l[s]&&l[s].bodyMargin)||(l[s].bodyMarginV1=l[s].bodyMargin,l[s].bodyMargin=l[s].bodyMargin+"px"),r=j(s),(a=w())&&function(n){e.parentNode&&new n((function(n){n.forEach((function(n){Array.prototype.slice.call(n.removedNodes).forEach((function(n){n===e&&R(e)}))}))})).observe(e.parentNode,{childList:!0})}(a),p(e,"load",(function(){var n,t;H("iFrame.onload",r,e,void 0,!0),n=l[s]&&l[s].firstRun,t=l[s]&&l[s].heightCalculationMethod in f,!n&&t&&W({iframe:e,height:0,width:0,type:"init"})})),H("init",r,e,void 0,!0),l[s]&&(l[s].iframe.iFrameResizer={close:R.bind(null,l[s].iframe),removeListeners:z.bind(null,l[s].iframe),resize:H.bind(null,"Window resize","resize",l[s].iframe),moveToAnchor:function(e){H("Move to anchor","moveToAnchor:"+e,l[s].iframe,s)},sendMessage:function(e){H("Send Message","message:"+(e=JSON.stringify(e)),l[s].iframe,s)}}))}function A(e,n){null===m&&(m=setTimeout((function(){m=null,e()}),n))}function q(){"hidden"!==document.visibilityState&&(x("document","Trigger event: Visiblity change"),A((function(){L("Tab Visable","resize")}),16))}function L(e,n){Object.keys(l).forEach((function(t){(function(e){return l[e]&&"parent"===l[e].resizeFrom&&l[e].autoResize&&!l[e].firstRun})(t)&&H(e,n,document.getElementById(t),t)}))}function B(){p(window,"message",O),p(window,"resize",(function(){var e;x("window","Trigger event: "+(e="resize")),A((function(){L("Window "+e,"resize")}),16)})),p(document,"visibilitychange",q),p(document,"-webkit-visibilitychange",q)}function V(){function e(e,t){t&&(!function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected