1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{51221:function(e,t,i){i.r(t),i.d(t,{default:function(){return MultiProductContainer_MultiProductContainer}});var n=i(85893),r=i(67294),d=i(5152),l=i.n(d),ContainerTitleSkeleton=function(){return(0,n.jsxs)("div",{className:"containerTitle",children:[(0,n.jsx)("div",{className:"skeleton mb-2",style:{width:280,height:20}}),(0,n.jsx)("div",{className:"skeleton",style:{width:200,height:20}})]})},LayoutSkeleton_MultiProductImageSkeleton=function(){return(0,n.jsxs)("div",{className:"multiProductImage flex flex-row justify-content-between",children:[(0,n.jsx)("div",{style:{background:"#fff",borderRadius:8,padding:10,width:97,height:90,marginRight:10},children:(0,n.jsx)("div",{className:"skeleton",style:{height:"100%"}})}),(0,n.jsx)("div",{style:{background:"#fff",borderRadius:8,padding:10,width:97,height:90,marginRight:10},children:(0,n.jsx)("div",{className:"skeleton",style:{height:"100%"}})}),(0,n.jsx)("div",{style:{background:"#fff",borderRadius:8,padding:10,width:97,height:90,marginRight:10},children:(0,n.jsx)("div",{className:"skeleton",style:{height:"100%"}})})]})},u=l()(function(){return i.e(5908).then(i.bind(i,85908))},{loadableGenerated:{webpack:function(){return[85908]}},ssr:!1,loading:function(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(ContainerTitleSkeleton,{})})}}),o=l()(function(){return i.e(2168).then(i.bind(i,92168))},{loadableGenerated:{webpack:function(){return[92168]}},ssr:!1,loading:function(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(LayoutSkeleton_MultiProductImageSkeleton,{})})}}),a=i(4829),c=i(72253),s=i(14932),m=i(91309),f=i(45007),h=i(73935),v=i(35629),g=i(61497),_=l()(function(){return i.e(3860).then(i.bind(i,53860))},{loadableGenerated:{webpack:function(){return[53860]}},ssr:!1}),b=(0,f.$j)(null,{setMultipleProductButtonClick:function(e){return null===g.ZP||void 0===g.ZP?void 0:g.ZP.setMultiProductButtonClick(e)}})(function(e){var t=e.multiproduct,i=e.gtmData,d=e.setMultipleProductButtonClick,l=(0,m._)((0,r.useState)(!1),2),u=l[0],o=l[1],a=t.map(function(e){var t;return null==e?void 0:null===(t=e.fields)||void 0===t?void 0:t.modelcode}).join(",");return(0,f.I0)(),(0,r.useEffect)(function(){u||d(!1)},[u]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{stretched:!0,color:"blue-400-blue",onClick:function(){o(!0),window.dataLayer.push((0,s._)((0,c._)({event:"multi_add_to_cart_click"},i),{"non-interactive":!1}))},dataTestId:"product:product-page-multi-add-selected-items-to-cart",className:"w-auto sm:w-1/2 md:w-1/2 lg:w-1/3 px-8 py-2.5 lg:mr-1 mr-0 mb-1 bg-blue-400 hover:bg-blue-300 text-12 text-white rounded-full",children:"SELECT ITEMS"}),u&&h.createPortal((0,n.jsx)(_,{setActivePanel:o,isActivePanel:u,productsModelId:a,type:"frequentlyBrought"}),document.querySelector('[deca-model-slide-placeholder="true"]'))]})}),MultiProductContainer_MultiProductContainer=function(e){var t,i,d,l=e.multiAddToCartProducts,c=e.gtmData,s=e.activeProduct;(0,r.useEffect)(function(){window.dataLayer.push({event:"multi_add_to_cart_impressions",main_product_sku:c.Product_Id,"non-interactive":!0,multi_add_to_cart_product_title:l.mainTitle,discount_type:"discounted",main_product_name:c.Product_Name})},[]);var m=null==s?void 0:null===(t=s.priceForFront)||void 0===t?void 0:t.slashedPrice;return(0,n.jsxs)("div",{className:"mt-2 md:mt-0 mb-4 mx-0 p-0 bg-white","data-multi-product-container":"true",children:[(0,n.jsx)(u,{bigTitle:l.mainTitle,smallTitle:l.subTitle}),(0,n.jsx)(o,{multiImg:l.modelCard}),(0,n.jsxs)("div",{className:"flex items-center justify-between sm:justify-between mt-4",children:[(0,n.jsx)(a.Z,{totalPrice:l.modelCard.slice(0,6).reduce(function(e,t){var i;return e+Number(null==t?void 0:null===(i=t.fields)||void 0===i?void 0:i.sellingPrice)},0),slashedPrice:(null===(d=l.modelCard[0])||void 0===d?void 0:null===(i=d.fields)||void 0===i?void 0:i.originalPrice)?l.modelCard.slice(0,6).reduce(function(e,t,i){var n;return e+Number(null==t?void 0:null===(n=t.fields)||void 0===n?void 0:n.originalPrice)},0):l.modelCard.slice(1,6).reduce(function(e,t,i){var n;return e+(Number(null==t?void 0:null===(n=t.fields)||void 0===n?void 0:n.originalPrice)||0)},0)+Number(m)||0}),(0,n.jsx)(b,{gtmData:{main_product_sku:c.Product_Id,main_product_name:c.Product_Name,multi_add_to_cart_product_title:l.mainTitle},multiproduct:l.modelCard})]})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.