"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[58530],{14634:(e,t,a)=>{a.d(t,{V:()=>d,W:()=>i});var n=a(29747),l=a(14232),r=a(36307);let o=(0,r.q6)();function i(e){let{children:t}=e,a=function(){let[e,t]=(0,l.useState)(!1),[a,n]=(0,l.useState)({installerId:"",itemId:"",quantity:{front:0}});return{isInstallationShopDetailsModalOpen:e,setInstallationShopDetailsModalOpen:t,setInstallationShopParams:n,installationShopParams:a}}();return(0,n.Y)(o.Provider,{value:a,"data-element":"unknown","data-component":"InstallationShopDetailsModalContextProvider",children:t})}let d=(e,t)=>(0,r.i7)(o,e,t)},58530:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var n=a(29747),l=a(18847),r=a.n(l),o=a(72480),i=a(34251),d=a(14634);let s=r()(()=>Promise.all([a.e(538),a.e(19802),a.e(41813)]).then(a.bind(a,41813)),{loadableGenerated:{webpack:()=>[41813]}}),u=function(){let{installerId:e,itemId:t}=(0,d.V)(e=>({installerId:e.installationShopParams.installerId,itemId:e.installationShopParams.itemId}));return e&&t?(0,n.Y)(s,{"data-component":"installation-shop-modal"}):null},m=r()(()=>Promise.all([a.e(96701),a.e(9759),a.e(76915),a.e(89068),a.e(58728),a.e(538),a.e(3718),a.e(19130),a.e(93617),a.e(92626),a.e(82909),a.e(87455),a.e(31121),a.e(10452),a.e(43937),a.e(19802),a.e(44032),a.e(27095),a.e(87260),a.e(96064),a.e(88982),a.e(14806),a.e(49127),a.e(42262),a.e(84686),a.e(31213),a.e(97070),a.e(73069),a.e(24664)]).then(a.bind(a,39489)),{loadableGenerated:{webpack:()=>[39489]}}),p=function(){let e=(0,o.n)(e=>e.isFirstLoadedPage),t=(0,i.W)(e=>!!e.cartSummary);return(0,n.FD)("div",{"data-component":"AppCartSummary",children:[(0,n.Y)(u,{"data-element":"InstallationShopDetailsWrapper"}),!e||t?(0,n.Y)(m,{"data-component":"cart-summary-modal"}):null]})}}}]);