(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[8308],{1420:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>h});var l=a(9196),c=a(3849),i=a.n(c),t=a(9307),r=a(4333);const n=(0,t.createContext)({hasContainerWidth:!1,containerClassName:"",isMobile:!1,isSmall:!1,isMedium:!1,isLarge:!1}),o=({children:e,className:s=""})=>{const[a,c]=(()=>{const[e,{width:s}]=(0,r.useResizeObserver)();let a="";return s>700?a="is-large":s>520?a="is-medium":s>400?a="is-small":s&&(a="is-mobile"),[e,a]})(),t={hasContainerWidth:""!==c,containerClassName:c,isMobile:"is-mobile"===c,isSmall:"is-small"===c,isMedium:"is-medium"===c,isLarge:"is-large"===c};return(0,l.createElement)(n.Provider,{value:t},(0,l.createElement)("div",{className:i()(s,c)},a,e))};a(906);const m=({children:e,className:s})=>(0,l.createElement)(o,{className:i()("wc-block-components-sidebar-layout",s)},e);var d=a(9659),u=a(1729);const h=({children:e,className:s})=>{const{cartItems:a,cartIsLoading:c}=(0,d.b)(),{hasDarkControls:t}=(0,u.l)();return c||a.length>=1?(0,l.createElement)(m,{className:i()("wc-block-cart",s,{"has-dark-controls":t})},e):null}},906:()=>{}}]);