"use strict";exports.id=1044,exports.ids=[1044],exports.modules={26019:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__,fragment:()=>y});var o=r(25487),n=r(16689),i=r(72955),s=r(10831),c=r(68687),l=r(56272),f=r(22747),u=r(2056),p=r(20997),b=e([f]);f=(b.then?(await b)():b)[0];let O=["src","alt"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ImageComponent=e=>{let{src:t,alt:r}=e,a=function(e,t){if(null==e)return{};var r,a,o=function(e,t){if(null==e)return{};var r,a,o={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,O);return p.jsx(u.Z,_objectSpread({src:t,alt:r,width:48,height:48},a))},y=o.Ud,__WEBPACK_DEFAULT_EXPORT__=function(e){let{data:t}=(0,l.al)(),r=e.product??t.product,{allVariantProducts:a,isOpen:o,setAllVariantProducts:u}=(0,i._)(),{isValidating:b}=(0,f.$)(r.id,o,u);(0,n.useEffect)(()=>{e.status?.(o?"visible":null)},[o]);let{gtin:O,unitMultiplier:y,brand:d,additionalProperty:m,isVariantOf:j,offers:{offers:[{seller:P}]}}=r,g=a.filter(e=>e.selectedCount).map(e=>{let{offers:{offers:[{price:t,priceWithTaxes:r,listPrice:a,listPriceWithTaxes:o}]}}=e;return{id:e.id,price:t,priceWithTaxes:r,listPrice:a,listPriceWithTaxes:o,seller:P,quantity:e.selectedCount,itemOffered:{sku:e.id,name:e.name,gtin:O,image:[e.image],brand:d,isVariantOf:_objectSpread(_objectSpread({},j),{},{skuVariants:_objectSpread(_objectSpread({},j.skuVariants),{},{activeVariations:e.specifications})}),additionalProperty:m,unitMultiplier:y}}}),v=(0,c.Q)(g);return p.jsx(s.Z,_objectSpread({buyProps:v,title:r.isVariantOf.name??"",loading:b,ImageComponent:ImageComponent},e))};a()}catch(e){a(e)}})},22747:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{$:()=>useAllVariantProducts});var o=r(25487),n=r(16689),i=r(52693),s=r(97358),c=e([i]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}i=(c.then?(await c)():c)[0];let l=o.gN,useAllVariantProducts=(e,t,r,a)=>{let{channel:o,locale:c}=(0,s.kP)(),f=(0,n.useMemo)(()=>{if(!o)throw Error("useAllVariantProducts: 'channel' from session is an empty string.");return{locator:[{key:"id",value:e},{key:"channel",value:o},{key:"locale",value:c}]}},[o,c,e]);return(0,i.aM)(l,f,{fallbackData:a,revalidateOnMount:!0,doNotRun:!t,onSuccess:e=>{let t=e.product.isVariantOf.skuVariants.allVariantProducts.map(e=>{let t=e.additionalProperty.reduce((e,t)=>_objectSpread(_objectSpread({},e),{},{[t.name.toLowerCase()]:t.value}),{}),r="https://schema.org/OutOfStock"===e.offers.offers[0].availability;return{id:e.sku,name:e.name,image:{url:e.image[0].url,alternateName:e.image[0].alternateName},inventory:e.offers.offers[0].quantity,availability:r?"outOfStock":"available",price:e.offers.offers[0].price,listPrice:e.offers.offers[0].listPrice,priceWithTaxes:e.offers.offers[0].priceWithTaxes,listPriceWithTaxes:e.offers.offers[0].listPriceWithTaxes,specifications:t,offers:e.offers,selectedCount:0}});r(t.sort((e,t)=>e.name.localeCompare(t.name)))}})};a()}catch(e){a(e)}})}};